package com.jake.demo.jpa.repository;

import com.jake.demo.jpa.entity.Player;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface PlayerRepository extends JpaRepository<Player, Integer> {

    @Query("select max(p.pid) from Player p")
    Integer findMaxId();
}
